package jsave;

import java.io.File;
import java.io.IOException;

import jsave.services.JSaveServices;

import org.apache.log4j.xml.DOMConfigurator;

import algutil.temps.Chronometre;

public class JsaveTest {

	/**
	 * @param args
	 * @throws IOException
	 */
	public static void main(String[] args) throws IOException {

		Chronometre c = new Chronometre();
		c.start();
		DOMConfigurator.configure("conf/log4j.xml");
		File rootPath = new File("e:/data/perso/test2");
		// File rootPath = new File("e:/data");
		// FileNode root = new FileNode(rootPath);
		// root.afficherHierarchy();
		JSaveServices.generateJTree4Incremental(rootPath);
		// JSaveServices.saveArbreNodeZip(root, new File(rootPath.getPath()+
		// File.separator + ".jsaveTree_" + System.currentTimeMillis()));
		
		for (int j=0;j<3;j++) {
		for (int i=0;i<10;i++) {
			System.out.println(j+""+i);
			if (i==2) {
				break;
			}
		}
		}
			
		
		c.stop();
		System.out.println(c.getDuree());

		/*
		 * File f = newFile(
		 * "e:/Program Files/IBM/WebSphere/AppServer/profiles/AppSrv02/installedApps/GL-CHA95500PRENode02Cell/WS-Create-RMS-ITEMS_war.ear/WS-Create-RMS-ITEMS.war/WEB-INF/classes/fr/galerieslafayette/stargate/common/webservice/server/service/eventsprocessor/impl/StargateDefaultPersistEventsServiceProcessorImpl.class"
		 * ); System.out.println(f.getName());
		 * System.out.println(f.getParent()); System.out.println(f.getPath());
		 * System.out.println(f.isDirectory()); System.out.println(f.isFile());
		 */
	}

}
